From: Uwe Kleine-König Date: Thu, 24 Jul 2014 07:15:20 +0000 (+0200) Subject: net/iodine: make port configurable X-Git-Tag: v14.07~78^2~1 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=4e09eeb4ae4e37dd649409cafaf3b5854f0dc417;p=feed%2Fpackages.git net/iodine: make port configurable Fall back to the default DNS port (i.e. 53). If you configure something different than 53 this results in a warning from iodined: ALERT! Other dns servers expect you to run on port 53. You must manually forward port 53 to port $port for things to work. This is obviously true. Signed-off-by: Uwe Kleine-König --- diff --git a/net/iodine/files/iodined.init b/net/iodine/files/iodined.init index d91b7793ef..89f1825f16 100644 --- a/net/iodine/files/iodined.init +++ b/net/iodine/files/iodined.init @@ -9,8 +9,11 @@ start_instance () { config_get password "$section" 'password' config_get tunnelip "$section" 'tunnelip' config_get tld "$section" 'tld' + config_get port "$section" 'port' - service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld" + test -n "$port" || port='53' + + service_start /usr/sbin/iodined -l "$address" -P "$password" -p "$port" "$tunnelip" "$tld" } start() {